package com.xwdeshj.entity;

import org.springframework.format.annotation.DateTimeFormat;

import javax.persistence.*;
import java.util.Date;

/**
 * 景区——景区游玩类型
 */
@Entity(name = "xw_sceinc_playtype")
public class XwSceincPlaytype {

    /**
     * 景区游玩类型id
     */
    @Column(name = "sceinc_palyType_id")
    private Integer sceincPalytypeId;

    /**
     * 景区游玩类型加密id
     */
    @Column(name = "sceinc_playType_encryptId")
    private String sceincPlaytypeEncryptid;

    /**
     * 景区类型（内容）
     */
    @Column(name = "sceinc_playType_desc")
    private String sceincPlaytypeDesc;

    /**
     * 更新时间
     */
    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @Column(name = "sceinc_playType_updatetime")
    private Date sceincPlaytypeUpdatetime;

    /**
     * 提交时间
     */
    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @Column(name = "sceinc_playType_createtime")
    private Date sceincPlaytypeCreatetime;

    public XwSceincPlaytype(){

    }

    public XwSceincPlaytype(String sceincPlaytypeEncryptid, String sceincPlaytypeDesc, Date sceincPlaytypeUpdatetime, Date sceincPlaytypeCreatetime) {
        this.sceincPlaytypeEncryptid = sceincPlaytypeEncryptid;
        this.sceincPlaytypeDesc = sceincPlaytypeDesc;
        this.sceincPlaytypeUpdatetime = sceincPlaytypeUpdatetime;
        this.sceincPlaytypeCreatetime = sceincPlaytypeCreatetime;
    }

    /**
     * 获取景区游玩类型id
     *
     * @return sceinc_palyType_id - 农家游玩类型id
     */
    @Id
    @GeneratedValue(strategy = GenerationType.IDENTITY)
    public Integer getSceincPalytypeId() {
        return sceincPalytypeId;
    }

    /**
     * 设置景区游玩类型id
     *
     * @param sceincPalytypeId 农家游玩类型id
     */
    public void setSceincPalytypeId(Integer sceincPalytypeId) {
        this.sceincPalytypeId = sceincPalytypeId;
    }

    /**
     * 获取景区游玩类型加密id
     *
     * @return sceinc_playType_encryptId - 景区游玩类型加密id
     */
    public String getSceincPlaytypeEncryptid() {
        return sceincPlaytypeEncryptid;
    }

    /**
     * 设置景区游玩类型加密id
     *
     * @param sceincPlaytypeEncryptid 景区游玩类型加密id
     */
    public void setSceincPlaytypeEncryptid(String sceincPlaytypeEncryptid) {
        this.sceincPlaytypeEncryptid = sceincPlaytypeEncryptid;
    }

    /**
     * 获取景区类型（内容）
     *
     * @return sceinc_playType_desc - 景区类型（内容）
     */
    public String getSceincPlaytypeDesc() {
        return sceincPlaytypeDesc;
    }

    /**
     * 设置景区类型（内容）
     *
     * @param sceincPlaytypeDesc 景区类型（内容）
     */
    public void setSceincPlaytypeDesc(String sceincPlaytypeDesc) {
        this.sceincPlaytypeDesc = sceincPlaytypeDesc;
    }

    /**
     * 获取更新时间
     *
     * @return sceinc_playType_updatetime - 更新时间
     */
    public Date getSceincPlaytypeUpdatetime() {
        return sceincPlaytypeUpdatetime;
    }

    /**
     * 设置更新时间
     *
     * @param sceincPlaytypeUpdatetime 更新时间
     */
    public void setSceincPlaytypeUpdatetime(Date sceincPlaytypeUpdatetime) {
        this.sceincPlaytypeUpdatetime = sceincPlaytypeUpdatetime;
    }

    /**
     * 获取提交时间
     *
     * @return sceinc_playType_createtime - 提交时间
     */
    public Date getSceincPlaytypeCreatetime() {
        return sceincPlaytypeCreatetime;
    }

    /**
     * 设置提交时间
     *
     * @param sceincPlaytypeCreatetime 提交时间
     */
    public void setSceincPlaytypeCreatetime(Date sceincPlaytypeCreatetime) {
        this.sceincPlaytypeCreatetime = sceincPlaytypeCreatetime;
    }

    @Override
    public String toString() {
        return "XwSceincPlaytype{" +
                "sceincPalytypeId=" + sceincPalytypeId +
                ", sceincPlaytypeEncryptid='" + sceincPlaytypeEncryptid + '\'' +
                ", sceincPlaytypeDesc='" + sceincPlaytypeDesc + '\'' +
                ", sceincPlaytypeUpdatetime=" + sceincPlaytypeUpdatetime +
                ", sceincPlaytypeCreatetime=" + sceincPlaytypeCreatetime +
                '}';
    }
}